<include file="Public:header" />
<include file="Public:left" />
<style>
    td{text-align:center;}
</style>
<section>
    <div class="page_title">
        <h2 class="fl">会员列表</h2>
    </div>
    <table class="table">
        <tr>
            <th style="width: 50px;">ID</th>
            <th>用户名</th>
            <th>会员等级</th>
            <th>公司</th>
            <th>手机号码</th>
            <th>到期时间</th>
            <th>注册时间</th>
            <th style="width:150px;">操作</th>
        </tr>
        <volist name="list" id="vo">
           <tr>
                <td><div class="cut_title ellipsis">{$vo.id}</div></td>
                <td>{$vo.username}</td>
                <td>{$vo.name}</td>
                <td>{$vo.company}</td>
                <td>{$vo.mobile}</td>
                <td>{$vo.validity_time}</td>
                <td>{$vo.create_time}</td>
                <td style="width:270px">
                    <a href="{:url('user/edit_user',array('id'=>$vo['id']))}" class="inner_btn dynamic_del" >编辑</a>
                    <a href="{:url('user/user_rights',array('id'=>$vo['id']))}" class="inner_btn dynamic_edit" >权限编辑</a>
                    <a _href="{:url('user/ajax_read_right',array('id'=>$vo['id']))}" id="{$vo['id']}" class="inner_btn read_right" >查看权限</a>
                </td>
           </tr>
       </volist>
    </table>
    {$page}
</section>
 </div>
</section>
<script>

    $(".read_right").click(function(){
        var id = $(this).attr('id');
        var url = $(this).attr('_href');

        layer.open({
            type: 2,
            title: '查看权限',
            shadeClose: true,
            shade: 0.5,
            area: ['800px', '80%'],
            content: url //iframe的url
        });
    });

</script>
</body>
</html>
